package com.laowang.project.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyBackstageNoticeMapper;
import com.laowang.project.system.domain.MyBackstageNotice;
import com.laowang.project.system.service.MyBackstageNoticeService;

/**
 * 公告信息Service业务层处理
 *
 * @author laowang
 * @date 2023-06-21
 */
@Service
public class MyBackstageNoticeServiceImpl implements MyBackstageNoticeService {
    @Autowired
    private MyBackstageNoticeMapper myBackstageNoticeMapper;

    /**
     * 查询公告信息
     *
     * @param id 公告信息ID
     * @return 公告信息
     */
    @Override
    public MyBackstageNotice selectMyBackstageNoticeById(Integer id) {
        return myBackstageNoticeMapper.selectMyBackstageNoticeById(id);
    }

    /**
     * 查询公告信息列表
     *
     * @param myBackstageNotice 公告信息
     * @return 公告信息
     */
    @Override
    public List<MyBackstageNotice> selectMyBackstageNoticeList(MyBackstageNotice myBackstageNotice) {
        return myBackstageNoticeMapper.selectMyBackstageNoticeList(myBackstageNotice);
    }

    /**
     * 新增公告信息
     *
     * @param myBackstageNotice 公告信息
     * @return 结果
     */
    @Override
    public int insertMyBackstageNotice(MyBackstageNotice myBackstageNotice) {
        return myBackstageNoticeMapper.insertMyBackstageNotice(myBackstageNotice);
    }

    /**
     * 修改公告信息
     *
     * @param myBackstageNotice 公告信息
     * @return 结果
     */
    @Override
    public int updateMyBackstageNotice(MyBackstageNotice myBackstageNotice) {
        return myBackstageNoticeMapper.updateMyBackstageNotice(myBackstageNotice);
    }

    /**
     * 批量删除公告信息
     *
     * @param ids 需要删除的公告信息ID
     * @return 结果
     */
    @Override
    public int deleteMyBackstageNoticeByIds(Integer[] ids) {
        return myBackstageNoticeMapper.deleteMyBackstageNoticeByIds(ids);
    }

    /**
     * 删除公告信息信息
     *
     * @param id 公告信息ID
     * @return 结果
     */
    @Override
    public int deleteMyBackstageNoticeById(Integer id) {
        return myBackstageNoticeMapper.deleteMyBackstageNoticeById(id);
    }

    @Override
    public List<MyBackstageNotice> selectMyBackstageNoticeListWeb(MyBackstageNotice myBackstageNotice) {
        return myBackstageNoticeMapper.selectMyBackstageNoticeListWeb(myBackstageNotice);
    }
}
